package com.sakura.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sakura.oj.model.dto.judge.JudgeCaseAddRequest;
import com.sakura.oj.model.entity.ProblemJudgeCase;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Sakura
 * @description 针对表【problem_judge_case(题目测试用例表)】的数据库操作Mapper
 * @createDate 2025-03-19 20:12:50
 * @Entity generator.domain.ProblemJudgeCase
 */
public interface ProblemJudgeCaseMapper extends BaseMapper<ProblemJudgeCase> {

    /**
     * 保存题目测试用例
     *
     * @param judgeCaseList 用例列表
     * @param problemId     题目id
     */
    void saveBatch(@Param("list") List<JudgeCaseAddRequest> judgeCaseList, @Param("problemId") Long problemId);
}




